﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace MvcEngine.ItemList.Components.Extensions
{
    public static class UrlHelperExtensions
    {
        public static string ItemListDetails(this UrlHelper urlHelper, Guid id)
        {
            return urlHelper.RouteUrl("ItemListDetails", new { id = id });
        }

        public static string ItemListEdit(this UrlHelper urlHelper, Guid id)
        {
            return urlHelper.RouteUrl("ItemListEdit", new { id = id });
        }

        public static string ItemListSave(this UrlHelper urlHelper, Guid id)
        {
            return urlHelper.RouteUrl("ItemListSave", new { id = id });
        }

        public static string ItemListNew(this UrlHelper urlHelper)
        {
            return urlHelper.RouteUrl("ItemListNew");
        }

        public static string ItemListSaveNew(this UrlHelper urlHelper)
        {
            return urlHelper.RouteUrl("ItemListSaveNew");
        }

        public static string ItemListDelete(this UrlHelper urlHelper, Guid id)
        {
            return urlHelper.RouteUrl("ItemListDelete", new { id = id });
        }
    }
}
